#!/usr/bin/python

"""Utilities
"""

__version__ = '1.0'
__author__ = 'liwei79@gmail.com'

import os
import sys
import string
import getopt

if __name__ == "__main__":
    sys.exit(0);

dbg = 0
def dbgPrint(str):
    if dbg:
        print "DBG:" + str;
def DBG(str):
    dbgPrint(str)

def convertStr(s):
    """Convert string to either int or float."""
    try:
        ret = int(s)
    except ValueError:
        #Try float.
        ret = float(s)
    return ret

